﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Services
{

    public class CaptchasGenerator
        : ICaptchasGenerator
    {

        public async Task<string> GenerateCaptchasAsync()
        {
            var r = new Random((int)DateTime.Now.Ticks);
            var code = r.Next(1000, 9999).ToString();
            return await Task.FromResult(code);
        }

    }

}